package io.renren.membermanage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.membermanage.bo.ModelTrainParamBo;
import io.renren.membermanage.dto.*;
import io.renren.membermanage.entity.Model;
import io.renren.membermanage.entity.ModelLabel;
import io.renren.membermanage.entity.ModelTrain;
import io.renren.membermanage.entity.ModelTrainDetail;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;


public interface ModelService extends IService<Model> {

    boolean addModel(MultipartFile picture, MultipartFile modelFile, AddModelParam param);

    boolean addModelByTrain(MultipartFile picture, String modelName, AddModelParam param);

    boolean updateModel(MultipartFile picture, MultipartFile modelFile, UpdateModelParam param);

    boolean deleteModel(Long id);

    List<ModelLabel> getModelLabel();

    Page<Model> getList(QueryModelParam param);

    boolean excuteTrain(ModelTrainParamBo bo);

    String  getSchedule(String taskId);

    Page<ModelTrain> getModelTrain(QueryModelTrainDto dto);

    List<ModelTrainDetail> getModelTrainDetail(QueryModelTrainDetailDto dto);
}
